package com.huaxin.common.Entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Administrator on 2016/11/23.
 */

public class ImageInfo implements Parcelable {
    String createUser;
    long createDate;
    String des;
    int id;
    String imgUrl;
    int isHome;

    public int getIsHome() {
        return isHome;
    }

    public void setIsHome(int isHome) {
        this.isHome = isHome;
    }

    public String getCreateUser() {
        return createUser;
    }

    public long getCreateDate() {
        return createDate;
    }

    public String getDes() {
        return des;
    }

    public int getId() {
        return id;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(createUser);
        dest.writeLong(createDate);
        dest.writeString(des);
        dest.writeInt(id);
        dest.writeString(imgUrl);
    }

    protected ImageInfo(Parcel in) {
        createUser = in.readString();
        createDate = in.readLong();
        des = in.readString();
        id = in.readInt();
        imgUrl = in.readString();
    }

    public static final Creator<ImageInfo> CREATOR = new Creator<ImageInfo>() {
        @Override
        public ImageInfo createFromParcel(Parcel in) {
            return new ImageInfo(in);
        }

        @Override
        public ImageInfo[] newArray(int size) {
            return new ImageInfo[size];
        }
    };
}
